package io.github.kouleen.manager.listener.player;

import io.github.kouleen.minecraft.core.lang.annotation.MinecraftPluginListener;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.entity.PlayerDeathEvent;

/**
 * 处理玩家死亡相关事件的类。
 * @author zhangqing
 * @since 2025/2/26 11:01
 */
@MinecraftPluginListener
public class PlayerDeathListener implements Listener {

    @EventHandler
    public void onPlayerDeathListener(PlayerDeathEvent playerDeathEvent){
        Player player = playerDeathEvent.getEntity();
        System.out.println(player.getName() + " 触发了处理玩家死亡相关事件");
    }
}
